<?php /* Smarty version Smarty-3.1.18, created on 2017-05-17 08:24:18
         compiled from "/data/www/mystery/protected/modules/webadmin/views/question/view.tpl" */ ?>
<?php /*%%SmartyHeaderCode:72349331654cf5e62370ff3-06737411%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '22af1d323575d0a78d52d715637ce059947a2440' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/question/view.tpl',
      1 => 1494904925,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '72349331654cf5e62370ff3-06737411',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_54cf5e623e8078_92594026',
  'variables' => 
  array (
    'question_info' => 0,
    'basic_list' => 0,
    'val' => 0,
    'classify_list' => 0,
    'parent_val' => 0,
    'second_val' => 0,
    'classify_val' => 0,
    'subject_list' => 0,
    'subject_val' => 0,
    'option_list' => 0,
    'option_key' => 0,
    'option_val' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_54cf5e623e8078_92594026')) {function content_54cf5e623e8078_92594026($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('../common/view_header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<div class="main_view" style="width: 800px;margin: auto;">
	<div class="biaoge">   
	<h2 class="wjtit"><?php echo $_smarty_tpl->tpl_vars['question_info']->value['question_name'];?>
</h2>
	<p class="wjbh" style="text-align: left;"><label>问卷编号</label><?php echo $_smarty_tpl->tpl_vars['question_info']->value['identifier'];?>
</p>
        <table width="100%" border="0" cellspacing="0">
        <?php if ($_smarty_tpl->tpl_vars['basic_list']->value) {?>
          <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['basic_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
	  <tr>
		<td><?php echo $_smarty_tpl->tpl_vars['val']->value['title'];?>
:</td>
                <td><span class="wjbh">&nbsp;</span></td>
	  </tr>
          <?php } ?>
          <?php }?>
        </table>
        
        <?php  $_smarty_tpl->tpl_vars['parent_val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['parent_val']->_loop = false;
 $_smarty_tpl->tpl_vars['parent_key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['classify_list']->value['list'][1]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['parent_val']->key => $_smarty_tpl->tpl_vars['parent_val']->value) {
$_smarty_tpl->tpl_vars['parent_val']->_loop = true;
 $_smarty_tpl->tpl_vars['parent_key']->value = $_smarty_tpl->tpl_vars['parent_val']->key;
?>
           <!--一级--> 
        <?php if ($_smarty_tpl->tpl_vars['parent_val']->value) {?>
        <p class="wjbh pt10"><label><strong><?php echo $_smarty_tpl->tpl_vars['classify_list']->value['all'][$_smarty_tpl->tpl_vars['parent_val']->value];?>
</strong></label></p>
        <?php }?>
        
        
        <!--是否有二级-->
        <?php  $_smarty_tpl->tpl_vars['second_val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['second_val']->_loop = false;
 $_smarty_tpl->tpl_vars['second_key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['classify_list']->value['list'][2]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['second_val']->key => $_smarty_tpl->tpl_vars['second_val']->value) {
$_smarty_tpl->tpl_vars['second_val']->_loop = true;
 $_smarty_tpl->tpl_vars['second_key']->value = $_smarty_tpl->tpl_vars['second_val']->key;
?>
            <?php if (isset($_smarty_tpl->tpl_vars['classify_list']->value['parent'][$_smarty_tpl->tpl_vars['parent_val']->value])&&(in_array($_smarty_tpl->tpl_vars['second_val']->value,$_smarty_tpl->tpl_vars['classify_list']->value['parent'][$_smarty_tpl->tpl_vars['parent_val']->value]))) {?>
            <p class="wjbh pt10"><label><strong><?php echo $_smarty_tpl->tpl_vars['classify_list']->value['all'][$_smarty_tpl->tpl_vars['second_val']->value];?>
</strong></label></p>
            <?php }?>
            <?php  $_smarty_tpl->tpl_vars['classify_val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['classify_val']->_loop = false;
 $_smarty_tpl->tpl_vars['classify_key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['classify_list']->value['list'][3]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['classify_val']->key => $_smarty_tpl->tpl_vars['classify_val']->value) {
$_smarty_tpl->tpl_vars['classify_val']->_loop = true;
 $_smarty_tpl->tpl_vars['classify_key']->value = $_smarty_tpl->tpl_vars['classify_val']->key;
?>
            <?php if (isset($_smarty_tpl->tpl_vars['classify_list']->value['parent'][$_smarty_tpl->tpl_vars['second_val']->value])&&(in_array($_smarty_tpl->tpl_vars['classify_val']->value,$_smarty_tpl->tpl_vars['classify_list']->value['parent'][$_smarty_tpl->tpl_vars['second_val']->value]))) {?>
        <div class="group" id="<?php echo $_smarty_tpl->tpl_vars['classify_val']->value;?>
">
	<p class="wjbh pt10"><label><strong><?php echo $_smarty_tpl->tpl_vars['classify_list']->value['all'][$_smarty_tpl->tpl_vars['classify_val']->value];?>
</strong></label></p>
	<table width="100%" border="0" cellspacing="0">
	  <tr> 
		<td width="70%"><strong>指标</strong></td>
		<td width="15%"><strong>标准分</strong></td>
                <td width="15%"><strong>选项</strong></td>
	  </tr>
          <?php if ($_smarty_tpl->tpl_vars['subject_list']->value[$_smarty_tpl->tpl_vars['classify_val']->value]) {?>
          <?php  $_smarty_tpl->tpl_vars['subject_val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['subject_val']->_loop = false;
 $_smarty_tpl->tpl_vars['subject_key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['subject_list']->value[$_smarty_tpl->tpl_vars['classify_val']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['subject_val']->key => $_smarty_tpl->tpl_vars['subject_val']->value) {
$_smarty_tpl->tpl_vars['subject_val']->_loop = true;
 $_smarty_tpl->tpl_vars['subject_key']->value = $_smarty_tpl->tpl_vars['subject_val']->key;
?>
	  <tr>
              <td><p style="font-size: 14px;"><?php echo $_smarty_tpl->tpl_vars['subject_val']->value['question_num'];?>
<?php echo $_smarty_tpl->tpl_vars['subject_val']->value['title'];?>
</p><p><?php echo $_smarty_tpl->tpl_vars['subject_val']->value['content'];?>
</p></td>
		<td><?php echo $_smarty_tpl->tpl_vars['subject_val']->value['standard_score'];?>
</td>
                <td>
                    <?php if (isset($_smarty_tpl->tpl_vars['option_list']->value[$_smarty_tpl->tpl_vars['subject_val']->value['subject_id']])) {?>
                    <?php  $_smarty_tpl->tpl_vars['option_val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['option_val']->_loop = false;
 $_smarty_tpl->tpl_vars['option_key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['option_list']->value[$_smarty_tpl->tpl_vars['subject_val']->value['subject_id']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['option_val']->key => $_smarty_tpl->tpl_vars['option_val']->value) {
$_smarty_tpl->tpl_vars['option_val']->_loop = true;
 $_smarty_tpl->tpl_vars['option_key']->value = $_smarty_tpl->tpl_vars['option_val']->key;
?>
                        <?php echo $_smarty_tpl->tpl_vars['option_key']->value;?>
:<?php echo $_smarty_tpl->tpl_vars['option_val']->value;?>
<br/>
                    <?php } ?>
                    <?php }?>
                </td>
	  </tr>
          <?php } ?>
          <?php }?>
	</table>
       </div>
        <?php }?>
        <?php } ?>
        <?php } ?>
        <?php } ?>
	
	</table>		
  </div>
</div>
<<?php echo $_smarty_tpl->getSubTemplate ("../common/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
